package com.lingjtx.auth.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lingjtx.auth.entity.SysUserLoginLog;
import com.lingjtx.common.security.model.LoginPo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserLoginLogMapper extends BaseMapper<SysUserLoginLog> {
    SysUserLoginLog selectLastLoginLog(@Param("userId") Long userId);

    LoginPo selectSysUserInfoByUserId(@Param("userId") Long userId);

    List<Long> selectAllChildIdsByDeptId(@Param("userId") Long userId);
}